home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / win_utl2 / pspa370a.zip / DEVELOP.BAT < prev    next >
DOS Batch File  |  1996-04-26  |  2KB  |  59 lines

  1.     @ECHO OFF
  2.  
  3.     REM ---------------------------------------------------------------------
  4.     REM - Here we check that we have at least three parameters:
  5.     REM - The save position, the POM file, and the input file.
  6.     REM ---------------------------------------------------------------------
  7.     IF NOT (%3) == () GOTO OKPARM
  8.     ECHO Please see "Effective Use of Batch Files" in the documentation
  9.     ECHO file (POM.DOC) for an explanation of the DEVELOP.BAT batch file.
  10.     GOTO QUIT
  11. :OKPARM
  12.  
  13. :MENU
  14.     REM ---------------------------------------------------------------------
  15.     REM - The program MENU.EXE is included in the standard Parse-O-Matic
  16.     REM - package.  Type MENU /? at the DOS prompt for a brief description
  17.     REM - of how it works.  (If you are not in your Parse-O-Matic directory,
  18.     REM - it must be listed in your DOS PATH.)
  19.     REM ---------------------------------------------------------------------
  20.     MENU POM DEVELOP %1
  21.     IF ERRORLEVEL 10 GOTO QUIT
  22.     IF ERRORLEVEL  4 GOTO OUTPUT
  23.     IF ERRORLEVEL  3 GOTO PARSE
  24.     IF ERRORLEVEL  2 GOTO EDIT
  25.     IF ERRORLEVEL  1 GOTO INPUT
  26.  
  27. :INPUT
  28.     SEE %3
  29.     GOTO MENU
  30.  
  31. :EDIT
  32.     REM ---------------------------------------------------------------------
  33.     REM - You may wish to change the following line to use a different
  34.     REM - text editor.
  35.     REM ---------------------------------------------------------------------
  36.     EDIT %2
  37.     GOTO MENU
  38.  
  39. :PARSE
  40.     REM ---------------------------------------------------------------------
  41.     REM - We include parameters 4, 5 and 6 here, in case you wish to add the
  42.     REM - /L or /Q parameters to the command line.  In most cases, however,
  43.     REM - they will be null (empty).
  44.     REM ---------------------------------------------------------------------
  45.     POM %2 %3 %4 %5 %6
  46.     GOTO MENU
  47.  
  48. :OUTPUT
  49.     IF NOT (%4) == () GOTO OKOUT
  50.     ECHO You did not specify an output file.  Perhaps your POM file
  51.     ECHO specifies the output file with the OFILE command.
  52.     GOTO MENU
  53.     PAUSE
  54. :OKOUT
  55.     SEE %4
  56.     GOTO MENU
  57.  
  58. :QUIT
  59.